Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nightly Testing Suite #355

Merged
merged 1 commit into from
Dec 18, 2023
Merged

Conversation

pvandyken
Copy link
Contributor

@pvandyken pvandyken commented Dec 16, 2023

Add a nightly testing action to be run once per week. This will include running all the tests, plus, it checks whether the number of tests has changed since last calculation of runtimes, and if so, recalculates the runtimes for pytest-split and makes a PR.

As always with gh-actions, getting this right will involve some dart throwing, so I'll leave this in draft until everything seems to work.

Hopefully this works. Its hard to fully replicate the behaviour of it running automatically on the main branch, but we can repair any further issues as they come I think

Set up nightly testing to occur once a week. Run the full test suite,
plus recalibrate the test timings for pytest-split if the number of
tests have changed and make a PR if necessary
@pvandyken pvandyken force-pushed the maint/gh-actions/nightly branch from 545d593 to 3e32e28 Compare December 16, 2023 19:05
@pvandyken pvandyken marked this pull request as ready for review December 16, 2023 19:05
@pvandyken
Copy link
Contributor Author

@kaitj, as with the actions refactoring, feel free to use this in the centralized repo, although you'll probably want some automated tests (just to make the workload of generalizing this harder!)

Copy link
Contributor

@kaitj kaitj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me workflow wise. Yeah, testing is always a bit iffy with actions I find, but nothing that can't be fixed!

Re: Reusable action - I've been thinking around this since I started doing something similar with the testing / codecov with Afids. I've been a bit hesitant to add testing into the centralized repo primarily due to a lack of standardized testing practices across the different repos. Would love to chat about this some more though and discuss ideas. If moving forward, we settle on a common practice, then I definitely agree that these should be included.

@pvandyken
Copy link
Contributor Author

Re: Reusable action - I've been thinking around this since I started doing something similar with the testing / codecov with Afids. I've been a bit hesitant to add testing into the centralized repo primarily due to a lack of standardized testing practices across the different repos. Would love to chat about this some more though and discuss ideas. If moving forward, we settle on a common practice, then I definitely agree that these should be included.

For sure. Actually, the main thing I was referring to was the code to check if the test timings need to be updated, and run if necessary. That's probably a fairly useful and generic chunk of code for any other repos using pytest-split. But yeah, testing is contextual, so even for that workflow, you'd probably need to make the actual test command one of the inputs

@pvandyken pvandyken merged commit 0d56b47 into khanlab:main Dec 18, 2023
28 checks passed
@pvandyken pvandyken deleted the maint/gh-actions/nightly branch December 18, 2023 16:53
@pvandyken
Copy link
Contributor Author

Okay, shoot, this is what happens when I don't check my own work before merging. It was supposed to run the full test suite and that seems to be missing, and there's some debug code still present. I'll make a follow-up PR

@pvandyken pvandyken added the skip_changelog Changes to the repository that should not be documented in the CHANGELOG label Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip_changelog Changes to the repository that should not be documented in the CHANGELOG
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants